package com.example.demo.mapper;

import com.example.demo.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {

    public Student getByUsername(String username);

    public Student getByStudentIdOrName(String studentId, String username);

    public void insertStudent(Student student);

    public List<Student> getStudent(Map<String, Object> params);

    void deleteStudent(String username);

    void updateStudent(Student student);

}
